<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui">

    <ui:composition>

        <p:dialog id="ProductcontainmentCreateDlg" widgetVar="ProductcontainmentCreateDialog" modal="true" resizable="false" appendToBody="true" header="#{bundle.CreateProductcontainmentTitle}" closeOnEscape="true">

            <h:form id="ProductcontainmentCreateForm">

                <h:panelGroup id="display">
                    <p:panelGrid columns="2">

                        <p:outputLabel value="#{bundle.CreateProductcontainmentLabel_PCId}" for="PCId" />
                        <p:inputText id="PCId" value="#{productcontainmentController.selected.PCId}" title="#{bundle.CreateProductcontainmentTitle_PCId}" required="true" requiredMessage="#{bundle.CreateProductcontainmentRequiredMessage_PCId}"/>

                        <p:outputLabel value="#{bundle.CreateProductcontainmentLabel_productId}" for="productId" />
                        <p:selectOneMenu id="productId" value="#{productcontainmentController.selected.productId}" required="true" requiredMessage="#{bundle.EditProductcontainmentRequiredMessage_productId}" converter="productConverter">
                            <f:selectItem itemLabel="#{bundle.SelectOneMessage}"/>
                            <f:selectItems value="#{productController.items}"
                                           var="productIdItem"
                                           itemValue="#{productIdItem}"
                                           itemLabel="#{productIdItem.productId.toString()}"
                                           />

                        </p:selectOneMenu>

                        <p:outputLabel value="#{bundle.CreateProductcontainmentLabel_GPackageId}" for="GPackageId" />
                        <p:selectOneMenu id="GPackageId" value="#{productcontainmentController.selected.GPackageId}" required="true" requiredMessage="#{bundle.EditProductcontainmentRequiredMessage_GPackageId}" converter="generalpackageConverter">
                            <f:selectItem itemLabel="#{bundle.SelectOneMessage}"/>
                            <f:selectItems value="#{generalpackageController.items}"
                                           var="GPackageIdItem"
                                           itemValue="#{GPackageIdItem}"
                                           itemLabel="#{GPackageIdItem.GPackageId.toString()}"
                                           />

                        </p:selectOneMenu>
                    </p:panelGrid>
                    <p:commandButton actionListener="#{productcontainmentController.saveNew}" value="#{bundle.Save}" update="display,:ProductcontainmentListForm:datalist,:growl" oncomplete="handleSubmit(xhr,status,args,ProductcontainmentCreateDialog);"/>
                    <p:commandButton value="#{bundle.Cancel}" onclick="ProductcontainmentCreateDialog.hide()"/>
                </h:panelGroup>

            </h:form>

        </p:dialog>

    </ui:composition>

</html>
